local AMax = {}
AMax.__index = AMax;

AMax.Ver = {}
AMax.Ver.Maj = 1
AMax.Ver.Min = 0

AM_PARTIAL_NAME		= 0
AM_STEAM_ID			= 1
AM_UNIQUE_ID		= 2
AM_IP_ADDRESS		= 3

function AMax:Constructor()
local Obj = {};
setmetatable(Obj,self);
	return Obj;
end

	if Results > 1 then
		return "ERR::Multiple targets found, more information required", false
	elseif !FoundPlayer then
		return "ERR::No target found!", false
	elseif FoundPlayer then
		return FoundPlayer, true
	end
end

function AMax:Log( str, tag)
local Tag = AMax.LogTag[1]
	for _,filters in pairs(AMax.LogFilters) do
		string.Replace(str, filters, "")
	end
		if tag then
			Tag = string.Replace(Tag, "%TIME%", AMax.Time.CurrentTime)
			Tag = string.Replace(Tag, "%DATE%", AMax.Time.CurrentDate)
		end
	file.Write(AMax.Files[1], file.Read(AMax.Files[1]) .. AMax.LogTag[1] .. str)
end

function AMax:SendError(ErrorSrc, Custom)
NCErrorMsg	= "Error! :: ".. ErrorSrc.Type .." :: ".. ErrorSrc.File .."!\n"
CErrorMsg	= "Error! :: ".. ErrorSrc.Str .."!\n"
	if !Custom then
		AMax:Log(NCErrorMsg)
		Msg(NCErrorMsg)
	else
		AMax:Log(CErrorMsg)
		Msg(CErrorMsg)
	end
end

function CreateMeta()

return AMax:Constructor()

end